<template>
	<view class="content">
		<view class="box">
			<view class="tyx">特易学</view>
			<view class="copy-btn">①点击 复制激活码</view>
			<view class="code">
				<image src="../../static/code-bg.png" class="code-bg" mode="widthFix"></image>
				<view class="code-text">激活码</view>
				<view class="code-content">
					<view class="title">【电梯检验员刷题】</view>
					<view class="num">232323232321</view>
					<view>30天</view>
				</view>				
			</view>
			<view class="instructions">
				<view>使用说明</view>
				<u-icon name="arrow-right" color="#c7c7c7" size="14"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.content {
		padding: 32rpx;
		box-sizing: border-box;
		background: #f0f0f0;
		min-height: 100vh;
		.instructions{
			display: flex;
			align-items: center;
			justify-content: center;
			margin-top: 24rpx;
			view{
				background: #f0e2cf;
				color: #a48864;
				font-size: 24rpx;
				margin-right: 12rpx;
				padding: 2rpx 12rpx;
				border-radius: 4rpx;
			}
		}
		.code{
			width: 100%;
			margin-top: 40rpx;
			position: relative;
			height: 221rpx;			
			.code-content{
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				width: 100%;
				height: 100%;
				position: absolute;
				left: 0;
				top: 0;
				z-index: 2;
				.title{
					font-size: 32rpx;
					color: #646464;
				}
				.num{
					margin-top: 16rpx;
					font-size: 32rpx;
					color: #cc172f;
					margin-bottom:16rpx;
				}
			}
			.code-bg{
				width: 100%;
				height: 221rpx;
				position: absolute;
				left: 0;
				top: 0;
			}
			.code-text{
				position: absolute;
				left: 0;
				top: 3rpx;
				font-size: 26rpx;
				color: #fff;
				width: 120rpx;
				text-align: center;
			}
		}
		.copy-btn{
			margin-top: 40rpx;
			width: 100%;
			height: 90rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			color: #fff;
			background-image: linear-gradient(to right, #d17e4e , #cc172f);
			border-radius: 90rpx;
		}
		.tyx{
			font-size: 32rpx;
			font-weight: 800;
		}
		.box{
			background: #fff;
			border-radius: 20rpx;
			padding: 24rpx;
			box-sizing: border-box;
			
		}
	}
</style>